home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-23 | 453 b | 17 lines | [TEXT/ScoM] |
- rnd2 range-min range-max
-
- Returns a random number in the range from range-min to range-max. Like get-random but the random numbers are not coerced to integers.
-
- (init-rnd 0.456)
-
- (let ((out nil))
- (dotimes (i 10)
- (push (rnd2 -5 5) out))
- out)
- --> (2.767029962487868 -1.3808704783878056 -2.673227537961793
- -1.7709425932116574 0.33362624315486755 3.449228071331163
- 3.008006167874555 -0.027266511096968316 2.1555576871469384
- -2.1869143400545)
-
-
-